// 登录接口需要携带参数类型定义
export interface LoginParams {
  userName: string
  passWord: string
}

interface dataType {
  token?: string
  tentType?: string
  userId?: string
}

export interface LoginResponse {
  data: dataType
  code: number
  msg?: string
}

interface userInfo {
  userId: number
  avatar: string
  userName: string
  passWord: string
  desc: string
  roles: string[]
  buttons: string[]
  routes: string[]
  token: string
}

interface user {
  checkUser: userInfo
}

// 定义服务器返回用户信息相关数据类型
export interface userResponseData {
  code: number
  data: user
}
